package com.lagou.dao;
import com.lagou.po.TArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TArticleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TArticle record);

    int insertSelective(TArticle record);

    TArticle selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TArticle record);

    int updateByPrimaryKey(TArticle record);

    List<TArticle> findAllByTags(@Param("tags")String tags);

    List<TArticle> findAllByContent(@Param("content")String content);

    List<TArticle> findAllByIdLike(@Param("likeId")Integer likeId);


    TArticle findonebyidAndTags(@Param("id")Integer id,@Param("tags")String tags);





}